import request from '@/utils/request';

export async function getInspectSubItemByPage (params: any) {
    return request('/api/device/getInspectSubItemByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addInspectSubItem (params: any) {
    return request('/api/device/addInspectSubItem', {
    method: 'POST',
    data: params,
  });
}

export async function updateInspectSubItem (params: any) {
    return request('/api/device/updateInspectSubItem', {
    method: 'POST',
    data: params,
  });
}

export async function delInspectSubItem (params: any) {
    return request('/api/device/delInspectSubItem', {
    method: 'POST',
    data: params,
  });
}


export async function exportInspectSubItem(params: any) {
    return request('/api/device/exportInspectSubItem', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getInspectSubItemByPage, addInspectSubItem, updateInspectSubItem, delInspectSubItem, exportInspectSubItem }
